package com.pda.xinmazhi.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import com.pda.xinmazhi.R;
import com.pda.xinmazhi.bean.LatheOrderBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class MachineCallAdapter extends BaseAdapter<LatheOrderBean> {
    public MachineCallAdapter(int layoutResId, @Nullable List<LatheOrderBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LatheOrderBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_proOrderNo,"生产订单号："+item.getProOrderNo());
        helper.setText(R.id.tv_scheduleId,"排程编号："+item.getScheduleId());
        helper.setText(R.id.tv_processName,item.getProcessName());
        helper.setText(R.id.tv_latheName,item.getLatheName());
        helper.setText(R.id.tv_startTime,item.getStartTime());
        helper.setText(R.id.tv_endTime,item.getEndTime());
        helper.setText(R.id.tv_status,item.getStatus());
    }
}
